﻿using System;

namespace IceDog.DNL.CSharp.Grammar.KeywordAbstract.PetShop
{
    public class BlackDog:Dog
    {
        private BlackDog()
        {
            
        }

        public BlackDog(string name, string host)
        {
            Name = name;
            Host = host;
        }
        /// <summary>
        /// 名称
        /// </summary>
        public override string Name { get; }

        /// <summary>
        /// 主人
        /// </summary>
        public override string Host { get; }

        /// <summary>
        /// 吃骨头
        /// </summary>
        public override void EatBone()
        {
            Console.WriteLine("I like eat bone");
        }
        public new string Type = "BlackDog";
    }
}
